import feedback from '../feedback';

export const FEED = (id = '', couponId = '', onFeedBack = () => {}) => {
  // console.log(id);
  const TB = (id.length || couponId.length) ? {
    'action': couponId.length ? 'RECEIVE_COUPONS' : 'ITEM_CLICK',
    'item_id': id + '',
    'coupon_id': couponId,
  } : null;
  return feedback(
    TB,
    {
      'action': '查看商品详情',
      'str': id + '',
    },
    (noFeedBack) => {
      onFeedBack(noFeedBack);
    }
  );
};
